import { Framework } from '@midwayjs/koa';
import { Bootstrap } from '@midwayjs/bootstrap';
import { SERVER_PORT } from './constants';
import { createConsoleLogger } from '@midwayjs/logger';

const kwConsoleLogger = createConsoleLogger('customConsoleLogger');
const web = new Framework().configure({
  port: SERVER_PORT,
  logger: kwConsoleLogger
});

Bootstrap.load(web).run();
